package org.lanqiao.mapper;


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.lanqiao.entity.Wxuser;
import org.springframework.stereotype.Repository;

import javax.xml.crypto.Data;
import java.math.BigDecimal;
import java.sql.Timestamp;

@Mapper
@Repository
public interface WxuserMapper {

    /**
     * @Author 王宇
     * @Description //TODO 查询单个用户
     * @Date 2019/06/11 9:30
     * @Param [wxId]
     * @return org.lanqiao.entity.Wxuser
     */
    Wxuser getWxUser(@Param("wxId")String wxId);



    /**
         * @Author 徐金星
         * @Description //TODO新增微信用户
         * @Date 2019/6/12 15:04
         * @Param [wxuser]
         * @explain
         * @return void
         */

    void addWxUser(@Param("wxuser") Wxuser wxuser);

    /**
     *任春旭：修改充值金额
     */
    void charge(@Param("wxBalance") BigDecimal wxBalance, @Param("wxId") String wxId);

    /**
     * 任春旭：增加充值记录
     */
    void addRechargeRecord(@Param("rechargeId")String rechargeId, @Param("rechargeMoney")BigDecimal rechargeMoney, @Param("rechargeTime")Timestamp rechargeTime, @Param("rechargeStatus")int rechargeStatus, @Param("wxId")String wxId);
/**
 * @Author 李玉鑫
 * @Description //TODO
 * @Date 微信用户余额修改 20:05
 * @Param [wxUserId, wxUserBalance]
 * @return void
 *
 */
    void updateNumber(@Param("wxUserId") String wxUserId, @Param("wxUserBalance") double wxUserBalance);
}